<%@ include file="/WEB-INF/jsp/include/skin_head.jsp" %><%@ page language="java" pageEncoding="UTF-8"%><%@ taglib uri="http://geeksaga.com/pagination-taglib" prefix="bbs" %>
            <div id="pw_bbs_list">
                <div id="pw_category">
                    <form:select path="categorySid" cssStyle="width: 120px;">
                        <form:option value=""><spring:message code="category.default" /></form:option>
                        <form:options items="${category}" />
                    </form:select>
                </div>
                <div id="pw_bbs_list_header"></div>
                <div id="pw_bbs_list_body">
                    <table border="0" cellspacing="0" cellpadding="0" width="100%">
                        <thead id="pw_bbs_title">
                            <tr>
                                <th style="width:70px"><spring:message code="bbs.category" /></th>
                                <th style="width:40px"><spring:message code="spec.no" /></th>
                                <th><spring:message code="spec.title" /></th>
                                <th style="width:60px"><spring:message code="spec.codeCnt" /></th>
                                <th style="width:60px"><spring:message code="spec.queryCnt" /></th>
                                <th style="width:100px"><spring:message code="spec.userNick" /></th>
                                <th style="width:120px"><spring:message code="spec.datetime" /></th>
                            </tr>
                        </thead>
                        <tbody>
                            <c:if test="${total == 0}">
                            <tr>
                                <td colspan="10" align="center"><spring:message code="spec.msg.empty"/></td>
                            </tr>
                            </c:if>
                            <c:choose>
                            <c:when test="${project.specListGrade <= user.grade}">
                            <c:forEach items="${list}" var="spec" varStatus="status">
                            <tr onmouseover="this.style.backgroundColor='#f1f6fb'" onmouseout="this.style.backgroundColor='#fefefe'">
                                <td>${category[spec.categorySid]}</td>
                                <td>
                                <c:choose>
                                <c:when test="${empty param.currentPage}">
                                    <c:choose>
                                    <c:when test="${spec.sid == param.sid}">
                                    <img src="<c:url value="/img/skin/${project.projectSkin}/i_selected.gif"/>" class="pw_bsc" />
                                    </c:when>
                                    <c:otherwise>
                                    ${(total - (10 * 0)) - status.index}
                                    </c:otherwise>
                                    </c:choose>
                                </c:when>
                                <c:otherwise>
                                    <c:choose>
                                    <c:when test="${spec.sid == param.sid}">
                                    <img src="<c:url value="/img/skin/${project.projectSkin}/i_selected.gif"/>" class="pw_bsc" />
                                    </c:when>
                                    <c:otherwise>                            
                                    ${(total - (10 * param.currentPage)) - status.index}
                                    </c:otherwise>
                                    </c:choose>
                                </c:otherwise>
                                </c:choose>  
                                </td>
                                <td align="left">
                                    <c:if test="${not empty spec.tagName}">
                                    <!--a href="<c:url value="/spec/tag.do?tagSid=${spec.tagSid}"/>" class="pw_gray"-->
                                    ${spec.tagName}
                                    <!--/a-->
                                    </c:if>
                                    <a href="<c:url value="/spec/view.do?sid=${spec.sid}&amp;currentPage=${param.currentPage}"/>">${spec.specTitle}</a>
                                </td>
                                <td>${spec.codeCnt}</td>
                                <td>${spec.queryCnt}</td>
                                <td>${spec.userNick}</td>
                                <td>${spec.modifyDate} ${spec.modifyTime}</td>
                            </tr>
                            </c:forEach>
                            </c:when>
                            <c:otherwise>
                            <tr>
                                <td colspan="10" align="center"><spring:message code="spec.msg.empty"/></td>
                            </tr>
                            </c:otherwise>
                            </c:choose>
                        </tbody>
                    </table>
                </div>
                <div id="pw_list_footer">
                    <table border="0" width="100%" cellspacing="0" cellpadding="0">
                    <colgroup>
                        <col />
                        <col width="3" />
                        <col class="page" />
                        <col width="3" />
                        <col />
                    </colgroup>
                    <tr>
                        <td class="search"><a href="<c:url value="/bbs/search.do?bbsId="/>${spec.projectCode}&amp;command=SEARCH"><spring:message code="spec.button.search" /></a></td>
                        <td><img src="<c:url value="/img/skin/${project.projectSkin}/b_board_left.gif"/>" /></td>
                        <td align="center">
                            <bbs:page
                                total="${total}"
                                pageSize="10"
                                link="${pageContext.request.contextPath}/spec/list/${spec.projectCode}"
                                beginLabel="Home "
                                endLabel=" End"
                                prevLabel="&lt; "
                                nextLabel=" >"
                                pageGroupSize="10" />
                        </td>
                        <td><img src="<c:url value="/img/skin/default/b_board_right.gif"/>" /></td>
                        <c:choose>
                        <c:when test="${project.specWriteGrade <= user.grade}">
                        <td class="write"><a href="<c:url value="/spec/edit.do?projectCode="/>${spec.projectCode}&amp;command=ADD"><spring:message code="spec.button.add" /></a></td>
                        </c:when>
                        <c:otherwise>
                        <sec:authorize ifAnyGranted="ROLE_SUPER_USER,ROLE_MANAGER_${param.projectCode}">
                        <td class="write"><a href="<c:url value="/spec/edit.do?projectCode="/>${spec.projectCode}&amp;command=ADD"><spring:message code="spec.button.add" /></a></td>
                        </sec:authorize>
                        </c:otherwise>
                        </c:choose>
                    </tr>
                    </table>
                </div>
                <%@ include file="/WEB-INF/jsp/include/copyright.jsp" %>
            </div>